<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<meta HTTP-EQUIV="expires" CONTENT="0">
<title>修改目的地</title>
<%@include file="../../head.jsp"%>
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">
		<table style="width: 400px; height: 200px;">

			<tr>
				<td><label>目的地中文名：</label>
				</td>
				<td><input name="zhname" value="${dest.zhname }"
					data-options="required:true,validType:'length[0,32]'"
					class="easyui-validatebox">
				</td>
				<td><label>目的地英文名：</label>
				</td>
				<td><input name="enname" value="${dest.enname }"
					data-options="required:true,validType:'length[0,32]'"
					class="easyui-validatebox">
				</td>
			</tr>
			<tr class="fitem">
				<td><label>海拔高度:</label></td>
				<td><input name="altitude" value="${dest.altitude }"
					data-options="required:false,validType:'length[0,32]'"
					class="easyui-validatebox"></td>
				<td><label>人口数量:</label></td>
				<td><input name="peopleNum" class="easyui-numberbox"
					value="${dest.peopleNum }" data-options="min:0,max:2147483646"><label>万</label>
				</td>
			</tr>
			<tr class="fitem">
				<td><label>使用语言:</label></td>
				<td><input name="lang" value="${dest.lang }"
					data-options="required:false,validType:'length[0,64]'"
					class="easyui-validatebox"></td>
				<td><label>使用货币:</label></td>
				<td><input name="currency" value="${dest.currency }"
					data-options="required:true,validType:'length[0,32]'"
					class="easyui-validatebox"></td>
			</tr>
			<tr class="fitem">
				<td><label>目的地经度:</label></td>
				<td><input name="lng" class="easyui-validatebox"
					value="${dest.lng }" required="required" validType="numberbox" />
				</td>
				<td><label>目的地纬度:</label></td>
				<td><input name="lat" class="easyui-validatebox"
					value="${dest.lat }" required="required" validType="numberbox" />
				</td>
			</tr>
			<tr class="fitem">
				<td><label>驻外大使馆电话:</label></td>
				<td><input name="tel" value="${dest.tel }"
					data-options="required:false,validType:'length[0,64]'"
					class="easyui-validatebox"></td>
				<td><label>目的地是否可用:</label></td>
				<td><select name="destEnable">
						<option value="1"
							<c:if test="${dest.destEnable eq 1 }"> selected="selected"</c:if>>可用</option>
						<option value="0"
							<c:if test="${dest.destEnable eq 0 }"> selected="selected"</c:if>>不可用</option>
				</select></td>
			</tr>
			<tr>
				<td><label>是否单独发布酒店:</label></td>
				<td><select name="hotelEnable">
						<option value="0"
							<c:if test="${dest.hotelEnable eq 0 }"> selected="selected"</c:if>>否</option>
						<option value="1"
							<c:if test="${dest.hotelEnable eq 1 }"> selected="selected"</c:if>>是</option>
				</select></td>
				<td>旅游局官网：</td>
				<td><input name="url" data-options="validType:'length[0,128]'"
					class="easyui-validatebox" value="${dest.url }"></td>

			</tr>


			<tr>
				<td>航空：</td>
				<td><input name="aviation" value="${dest.aviation }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox">
				</td>
				<td>铁路：</td>
				<td><input name="railroad" value="${dest.railroad }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox">
				</td>

			</tr>
			<tr>
				<td>公路：</td>
				<td><input name="highway" value="${dest.highway }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox">
				</td>
				<td>水运：</td>
				<td><input name="waterTransport"
					value="${dest.waterTransport }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox">
				</td>

			</tr>
			<tr>
				<td>版权：</td>
				<td><input name="copyright" value="${dest.copyright }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox">
				</td>
				<td></td>
				<td></td>

			</tr>
			<tr>
				<td>市内交通：</td>
				<td><input name="localTransport"
					value="${dest.localTransport }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox">
				</td>
				<td><label>显示风格:</label></td>
				<td><select name="style">
						<option value="1"
							<c:if test="${dest.style eq 1 }"> selected="selected"</c:if>>分类展示</option>
						<option value="2"
							<c:if test="${dest.style eq 2 }"> selected="selected"</c:if>>不分类展示</option>
				</select></td>

			</tr>
			<tr class="fitem">

				<td colspan="1"><label>目的地新图片:</label>
				</td>
				<td colspan="3"><input name="imagepart" type="file" size="50"
					class="easyui-validatebox" style="width: 200px"></td>
			</tr>
			<tr>
				<td colspan="1"><label>描述摘要:</label>
				</td>
				<td colspan="3"><textarea name="summary" id="destSummary"
						data-options="required:false,validType:'length[0,64]'"
						class="easyui-validatebox" style="width: 375px; height: 80px">${dest.summary }</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="1"><label>目的地描述:</label>
				</td>
				<td colspan="3"><textarea name="content" id="destDesc"
						data-options="required:false,validType:'length[0,2048]'"
						class="easyui-validatebox" style="width: 375px; height: 80px">${dest.content }</textarea>
				</td>
			</tr>

			<tr>
				<td>目的地原始图片：</td>
				<td colspan="3"><img src="${image_domain}${dest.source}"
					width=300 height=150>
				</td>
				<input type="hidden" value="${dest.destId }" name="destId">
				<input type="hidden" value="${dest.source}" name="destOrigImg">
				<input type="hidden" value="${dest.infoId }" name="infoId">
				<input type="hidden" value="${dest.infoType }" name="infoType">
				<input type="hidden" value="${dest.dataId }" name="dataId">
				<input type="hidden" value="${dest.imageId }" name="imageId">
			</tr>
		</table>
	</form>
	<script type="text/javascript">
		$('#destSummary').ceditor();
		$('#destDesc').ceditor();
	</script>
	<style type="text/css">
#fm {
	margin: 0;
	padding: 40px 40px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>